
f = open('tmp.txt','wt')
f.writelines(['中国','美国'])
f.close()

f = open('tmp.txt','r')
print(f.read())